package com.cryptoneedle.center.source.entity;

import com.bubbles.engine.data.core.entity.BaseEntity;
import jakarta.persistence.*;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.annotations.Comment;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

/**
 * <p>description: 配置系统 </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-25
 */
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(schema = "public", name = "config_system")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = false)
@EqualsAndHashCode(callSuper = false)
@Comment("配置系统")
public class ConfigSystem extends BaseEntity {

    @Id
    @Column(length = 16)
    @Comment("编码")
    private String code;

    @Column(length = 16)
    @Comment("名称")
    private String name;
}